package com.test.school.service.impl;


import com.test.school.dto.School;
import com.test.school.mapper.SchoolMapper;
import com.test.school.service.SchoolService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SchoolServiceImpl implements SchoolService {

  @Autowired
  SchoolMapper schoolMapper;

  @Override
  public List<String> findprovince(){return schoolMapper.findprovince();}

  @Override
  public List<School> findalluniversity(){
    return schoolMapper.findalluniversity();
  }

  @Override
  public List<School> findfirstuniversity(String word){return schoolMapper.findfirstuniversity(word);}

  @Override
  public List<School> finduniversitybyregion(String region){return schoolMapper.finduniversitybyregion(region);}

  @Override
  public List<School> finduniversitynamelike(String name){return schoolMapper.finduniversitynamelike(name);}

  @Override
  public List<School> finduniversitybyname(String name){return schoolMapper.finduniversitybyname(name);};
}
